package org.jeecg.modules.wlhy.hycarrier.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: hy_carrier_report
 */
@Data
@TableName("hy_carrier_report")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class HyCarrierReport implements Serializable {

    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    private String companyId;

    @ApiModelProperty(value = "司机ID")
    private String carrierId;

    @ApiModelProperty(value = "上报状态(0未上传 1上传成功 2上传失败)")
    private String carrierUploadStatus;

    @ApiModelProperty(value = "实际承运人与车辆关系上报状态")
    private String carrierVehicleUploadStatus;

    @ApiModelProperty(value = "实际承运人与驾驶员关系上报状态")
    private String carrierDriverUploadStatus;

	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "上报时间")
    private Date uploadDate;

    @ApiModelProperty(value = "上报平台类型(1-河北,2-天津)")
    private Integer reportPlatformType;

	/**上报失败原因*/
    @ApiModelProperty(value = "上报失败原因")
    private String carrierReportFailureReason;

    private String carrierVehicleReportFailureReason;

    private String carrierDriverReportFailureReason;
}
